/***************************************************************************
 *            un_server_test.c
 *
 *  Tue May 29 11:46:32 2007
 *  Copyright  2007  kf701
 *  Email <kf701.ye AT gmail.com>
 ****************************************************************************/

#include "factory.h"

void run(const char *path, uint8_t *data, uint32_t size)
{
	data[size] = 0;
	sys_debug("%s,%d: data: %s\n", __FILE__, __LINE__, data+4);
}

int main()
{
	debug_verbose = 4;
	char listen_path[256] = "/tmp/cmmb_gui.socket";
	sys_debug("unix socket listen, path is %s\n",  listen_path);
	unix_socket_server( listen_path, 1024, run );
	return 0;
}
